

import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 渠道建设子项目分页查询(4s店查询所有)
export const searchConstruction = (_params) => axios.get(`${SERVER.CMSCLOUD_CHANNEL}/construction/constructionChildren`,  {params:_params,menuId:'-1'});

// 渠道建设子项目分页查询
export const searchConstructionList = (_params) => axios.get(`${SERVER.CMSCLOUD_CHANNEL}/construction/constructionChildren/children/getListSeach`,  {params:_params,menuId:'-1'});



// 渠道建设子项目新增
export const insertConstruction = params => axios.post(`${SERVER.CMSCLOUD_CHANNEL}/construction/constructionChildren`,  params );


// 渠道建设子项目修改
export const updataConstruction = (params, id) => axios.put(`${SERVER.CMSCLOUD_CHANNEL}/construction/constructionChildren/${id}`,  params );


